package org.jeecg.modules.outOrder1.mapper;

import java.util.Date;
import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.jeecg.modules.outOrder1.entity.OutOrder1;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * @Description: 出库单
 * @Author: jeecg-boot
 * @Date:   2024-01-12
 * @Version: V1.0
 */
public interface OutOrder1Mapper extends BaseMapper<OutOrder1> {

    @Select("select IFNULL(SUM(tray_num), 0) from out_order1 where out_order_status = 10 and DATE_FORMAT(tally_clerk_time, '%Y-%m-%d') = DATE_FORMAT(#{date}, '%Y-%m-%d')")
    Integer getOutOrderCount(@Param("date") Date date);
}
